<div id="menuleft" class="menucategory">
    <div class="category-header-right menucategory">
        <div class="category-header-left">
            <div class="category-header-bg" style="text-align:left;padding-left:20px">
                <p>Danh mục rao vặt</p>
            </div>
        </div>
    </div>       
	<div id="product-category">
		<?
		$rs = $db->query("SELECT * FROM ".$prefix."loairaovat WHERE rvc_id_cha = 0 AND rvc_hienthi = 1 ORDER BY rvc_thutu ASC");
		while($row = $db->fetch_array($rs)){
			$rvc_ten = $myString->unQuote(stripslashes($row[rvc_ten]));
			$rvc_id = $row[rvc_id];
			
		?>	    
			
			<div class="category-header-1st">
				<li class="firstitem"><a href="javascript:void(0);"><?=$rvc_ten?></a></li>
			</div> 
		<?
			$rs2 = $db->query("SELECT * FROM ".$prefix."loairaovat WHERE rvc_id_cha = '".$rvc_id."' AND rvc_hienthi = 1 ORDER BY rvc_thutu ASC");
			while($row2 = $db->fetch_array($rs2)){
			$srvc_ten =  $myString->unQuote(stripslashes($row2[rvc_ten]));
			$srvc_id = $row2[rvc_id];
		?>	
				<div class="category-items">
					<?
						if($cid == $srvc_id){
					?>
					<span><?=$srvc_ten?></span>
					<? }else{ ?>
					<span><a href="<?=$root?>/danh-muc-rao-vat/<?=$srvc_id?>/<?=$myString->vietdecode($srvc_ten)?>"><?=$srvc_ten?> (<?=LaySoLuongTinRaoVat($srvc_id)?>)</a></span>
					<? } ?>
				</div> 
		<? } ?>
				
		<? } ?> 
										   
	</div>
	<script language="javascript">
		$(document).ready(function(){ 
    $('#menu-left-ul').hoverAccordion({ 
       keepHeight: true, 
       activateItem: 3, 
       speed: 'fast' 
			}); 
		 })
	</script>
	<div style="height:10px"></div>
    <br style="font-size:0px;" />
</div>